package com.zhongzhi.common;

import com.zhongzhi.springboot.pojo.StationShow;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 测试对象
 * @author Administrator
 * 此对象为页面显示对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GrabDetail {
	/**工位名*/
	private  String stationName;
	/**机型*/
	private  String type;
	/**机号*/
	private  String num;
	/**开始时间*/
	private  String StartTime;
	/**当前状态*/
	private  Boolean Run;
	/**剩余时间*/
	private  String ResTime;
	/**初始高度A*/
	private  String StartHA;
	/**当前高度A*/
	private  String CurHA;
	/**下落距离A*/
	private  String DisHA;
	/**预计下落A*/
	private  String StateA;
	/**初始高度B*/
	private  String StartHB;
	/**当前高度B*/
	private  String CurHB;
	/**下落距离B*/
	private  String DisHB;
	/**预计下落B*/
	private  String StateB;

	//工位id
	private  Integer id;
	//设备名
	private  String equipmentName;
	//所属设备id
	private  Integer equipmentId;
	//数据a所属通道
	private  Integer numa;
	//数据b所属通道
	private  Integer numb;
	//工位描述
	private  String remarks;
	
	public GrabDetail(StationShow ss,Integer eqId) {
		super();
		this.id=ss.getId();
		this.numa=ss.getNuma();
		this.numb=ss.getNumb();
		this.remarks=ss.getRemarks();
		this.equipmentName=ss.getEquipmentName();
		this.stationName=ss.getStationname();
		this.equipmentId=eqId;
		
	}

	public GrabDetail(String stationName, String type, String num, String startTime, Boolean run, String resTime,
			String startHA, String curHA, String disHA, String stateA, String startHB, String curHB, String disHB,
			String stateB) {
		super();
		this.stationName = stationName;
		this.type = type;
		this.num = num;
		StartTime = startTime;
		Run = run;
		ResTime = resTime;
		StartHA = startHA;
		CurHA = curHA;
		DisHA = disHA;
		StateA = stateA;
		StartHB = startHB;
		CurHB = curHB;
		DisHB = disHB;
		StateB = stateB;
	}
	/**
	 * 
	 * @param type		机型
	 * @param num		机号
	 * @param StartTime	开始时间
	 * @param Run		运行状态
	 * @param ResTime	剩余时间
	 * @param StartHA	初始
	 * @param CurHA		当前
	 * @param DisHA		预计
	 * @param StateA	下落
	 * @param StartHB 	初始
	 * @param CurHB		当前
	 * @param DisHB		预计
	 * @param StateB	下落
	 */
	public void setGrabDetail(String type,String num,String StartTime,Boolean Run,String ResTime,
			String StartHA,String CurHA,String DisHA,String StateA,
			String StartHB,String CurHB,String DisHB,String StateB) {
		this.type=type;
		this.num=num;
		this.StartTime=StartTime;
		this.Run=Run;
		this.ResTime=ResTime;
		this.StartHA=StartHA;
		this.CurHA=CurHA;
		this.DisHA=DisHA;
		this.StateA=StateA;
		this.StartHB=StartHB;
		this.CurHB=CurHB;
		this.DisHB=DisHB;
		this.StateB=StateB;
	}
	

}
